package com.king.base;

import com.google.common.base.Joiner;
import com.google.common.collect.Lists;

import java.util.List;

/**
 * Created by Administrator on 2015/4/24.
 */
public class JoinDemo {
    public static void main(String[] args) {
        List<String> names = Lists.newArrayList();
        names.add("xiaohua");
        names.add("libai");
        StringBuilder stringBuilder = new StringBuilder();
        String string = Joiner.on("*****").appendTo(stringBuilder,names).toString();
        System.out.println(string);

    }
}
